# coding=utf-8
import requests

url = "https://www.12306.cn/mormhweb"

headers = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36"}
resp = requests.get(url, headers=headers, verify=False)  # 对于处理
# ssl证书不安全或其他

print(resp.status_code)